def _main():
    a = input("a=")
    n = int(input("n="))

    def generate_parts():
        for c in range(n):
            yield a * (c + 1)

    result_str = "+".join(generate_parts())
    print(f"Sₙ={result_str}")


if __name__ == "__main__":
    _main()
